// Copyright 2019 by linx, All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.
package crypt

import (
	"encoding/hex"
	"github.com/gogf/gf/crypto/gaes"
)

func Decrypt(encryptedStr string) string {
	data, _ := hex.DecodeString(encryptedStr)
	v, _ := gaes.Decrypt(data, key)
	return string(v)
}
